package com.zhx;

/**
 * @author zhx
 * @title 较上版本 加入了构造函数
 * @description
 * @date 2022/9/29 11:25
 */
public class UserService {

    private String name;

    public UserService(String name) {
        this.name = name;
    }

    public void queryUserInfo(){
        System.out.println("查询用户信息:"+name);
    }

}
